<include file="public+ffheader">

   {style}
    html{overflow-x : hidden;}
   {/style}
   <div id="menu" class="menu">
      <ul id="submenu">
         <li id="title"><import file="Images/home#gif" type='img'  basepath="TMPLPUB"/>&nbsp;<if condition="Safe::getGpc( 'title' )">{$D.get.title}<else/><lang>后台首页</lang></if></li>

         <assign name='nIndex' value="0" />
		 <foreach for=arrMenuList >
           <php>
		     $arrNode = explode( '@',$value['node_name'] );
             $sNodeName = $arrNode[1];
		   </php>
           <if condition="$value['group_id'] eq $sMenuTag  
		                  and strtolower( $sNodeName ) neq 'public' 
						  and strtolower( $sNodeName ) neq 'index' 
						  and $value['node_access']==1" >
              <li class=''><a onClick="refreshmainframe('{:G::U($sNodeName.'/index')}');currentClass({$nIndex});return false;" href="{:G::U($sNodeName.'/index')}">{$value['node_title']}</a></li>
              {~$nIndex++}
           </if>
		 </foreach>
      </ul> 
    </div>
    {script} 
     <!--
	 function refreshmainframe(url){
		 parent.main.document.location = url;
	 }
	 var oAnchor = document.anchors.length;
	 if ( oAnchor.length > 0 && document.anchors(0) ){
		 refreshmainframe(document.anchors(0).href);
	 }
     //-->
    {/script}

    {script} 
         function currentClass(n) {

	        var lis = document.getElementsByTagName('li');
	        for(var i = 0; i < lis.length; i++) {

		       lis[i].className = '';
	        }

			if( typeof lis[n+1]  != "undefined" ){

	          lis[n+1].className = 'active';
			}
        }
        currentClass(0);
   {/script}
   
   
<include file="public+fffooter">